//
//  YHBaseCollectionReusableView.m
//  MoreCoin
//
//  Created by 林宁宁 on 2019/11/14.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import "YHBaseCollectionReusableView.h"
#import <YHStyle/UIColor+YHStyle.h>

@implementation YHBaseCollectionReusableView



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self yh_nibConfig];
}

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        [self defaultStyle];
        [self yh_commonInit];
    }
    return self;
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    self = [super initWithCoder:aDecoder];
    if(self){
        [self defaultStyle];
        [self yh_commonInit];
    }
    return self;
}

- (void)defaultStyle{
    self.backgroundColor = [UIColor yh_background];
}


- (void)yh_commonInit{};
- (void)yh_nibConfig{}

+ (CGSize)contentSize{
    return CGSizeZero;
}

+ (NSString *)cellIndentify{
    return [NSString stringWithFormat:@"CollectionReusableViewReuseIndentify_%@",NSStringFromClass(self)];
}

@end
